package point

import "github.com/shirou/gopsutil/mem"

type CpuMemorySizePoint struct{}

func NewCpuMemorySizePoint() *CpuMemorySizePoint { return &CpuMemorySizePoint{} }

func (m *CpuMemorySizePoint) Get() any {
	v, _ := mem.VirtualMemory()
	return uint32(v.Total / 1024 / 1024)
} 

func (m *CpuMemorySizePoint) Set(...any) bool { return false }

func (m *CpuMemorySizePoint) SetRoute(string) PointInterface { return m }
